package com.bafa.front;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.dbcache.LeagueCache;
import com.bafa.exceptions.ErrorException;
import com.bafa.objects.Match;
import com.bafa.objects.PageBean;
import com.bafa.objects.Round;
import com.bafa.objects.Season;
import com.bafa.services.RetrieveServices;

public class DisplayCupFixturesServlet extends DaddyServlet {

	
	@Override
	public void doEvent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ErrorException {
		/*
	Match[] matches = DisplayServices.getCupFixtures(new Integer(request.getParameter("roundId")).intValue(),new Integer(request.getParameter("seasonId")).intValue());
	Round round = DisplayServices.getRound( new Integer(request.getParameter("roundId")).intValue(),new Integer(request.getParameter("seasonId")).intValue());
	Season season = DisplayServices.getSeason(request.getParameter("seasonId"));
	request.setAttribute("RESULTS",matches);
		String plate = (round.isCup())?"Cup":"Plate";
		PageBean pageBeanTemp = (PageBean)LeagueCache.getPages().get("cupmatches");
		pageBean = new PageBean(pageBeanTemp);
		pageBean.setPageheader(pageBean.getPageheader().replaceAll("<>",season.getSeason()+" "+season.getYear()+" "+plate+" "+round.getName()));
		*/
	}
}
